
import Vue from 'vue'
import Router from 'vue-router'
import Home from "@/views/pages/Home.vue"

// 应用路由插件
Vue.use(Router)

// 创建一个路由器
export default new Router({
    routes: [
        {
            path: '/',
            name: 'Home',
            component: Home,
            meta: { title: '首页' },
        },
        {
            path: '/snapshot',
            name: 'Snapshot',
            meta: {
                title: '快照'
            },
            component: () => import('@/views/pages/snapshot/snapshot.vue'),
        },

    ]
})
